/*
 * OpenZone - simple cross-platform FPS/RTS game engine.
 *
 * Copyright © 2002-2013 Davorin Učakar
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * @file matrix/BotClass.hh
 */

#pragma once

#include <matrix/DynamicClass.hh>

namespace oz
{

class BotClass : public DynamicClass
{
  public:

    int    state;

    Vec3   crouchDim;
    Vec3   corpseDim;

    float  camZ;
    float  crouchCamZ;

    float  walkMomentum;
    float  runMomentum;
    float  jumpMomentum;

    float  airControl;
    float  ladderControl;
    float  waterControl;
    float  slickControl;

    float  stepWalkInc;
    float  stepRunInc;

    float  stairInc;
    float  stairMax;
    float  stairRateLimit;
    float  stairRateSupp;

    float  climbInc;
    float  climbMax;
    float  climbMomentum;

    float  stamina;
    float  staminaGain;
    float  staminaRunDrain;
    float  staminaWaterDrain;
    float  staminaClimbDrain;
    float  staminaJumpDrain;
    float  staminaThrowDrain;

    float  regeneration;

    float  reachDist;
    float  grabWeight;
    float  throwMomentum;

    int    weaponItem;
    float  meleeInterval;
    String onMelee;

    int    nameList;

    String mindFunc;

    float  bobRotation;
    float  bobAmplitude;
    float  bobSwimAmplitude;

    Mat44  baseColour;
    Mat44  nvColour;
    Mat44  injuryColour;

  public:

    static ObjectClass* createClass();

    void init( InputStream* is, const char* name ) override;

    Object* create( int index, const Point& pos, Heading heading ) const override;
    Object* create( InputStream* istream ) const override;
    Object* create( const JSON& json ) const override;

};

}
